package com.hmdp.utils;

/**
 * ClassName: ILock
 * Package: com.hmdp.utils
 * Description:
 *
 * @Author dhu-bion
 * @Create 2025/8/18 13:57
 * @Version 1.0
 */
public interface ILock {

    /**
     * 尝试获取锁
     */
    boolean tryLock(long timeoutSec);


    /**
     * 释放锁
     */
    void unlock();

}
